\hypertarget{class_c_i___cart}{\section{C\-I\-\_\-\-Cart Class Reference}
\label{class_c_i___cart}\index{C\-I\-\_\-\-Cart@{C\-I\-\_\-\-Cart}}
}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_c_i___cart_a568ecdb0d73d2a870f33189739922a50}{\-\_\-\-\_\-construct} (\$params=array())
\item 
\hyperlink{class_c_i___cart_a07488e002c513013079157a9fe61a8e3}{insert} (\$items=array())
\item 
\hyperlink{class_c_i___cart_a55d27979573b7d46bdf774f247c15b07}{\-\_\-insert} (\$items=array())
\item 
\hyperlink{class_c_i___cart_adddf5d1a4f704b647f28b0322f8b64f2}{update} (\$items=array())
\item 
\hyperlink{class_c_i___cart_ac7b19afff2357d4b9e926ee2df1f3e65}{\-\_\-update} (\$items=array())
\item 
\hyperlink{class_c_i___cart_abaa559f3e9e7f8ad933f19165fb61083}{\-\_\-save\-\_\-cart} ()
\item 
\hyperlink{class_c_i___cart_a9efa17b570797933c7c5b0c68f743a55}{total} ()
\item 
\hyperlink{class_c_i___cart_a785be13903ee65b8936d523b2728e53a}{total\-\_\-items} ()
\item 
\hyperlink{class_c_i___cart_a3c3eeaf9ed289e55cd34926feb82eabf}{contents} ()
\item 
\hyperlink{class_c_i___cart_aabcb32751bff6bec65aa62fc152d5dde}{has\-\_\-options} (\$rowid= '')
\item 
\hyperlink{class_c_i___cart_ac4ca22391c63376c2b134e5138712ace}{product\-\_\-options} (\$rowid= '')
\item 
\hyperlink{class_c_i___cart_a0ee4758d55d11ab91f5b7ac04b1eedc3}{format\-\_\-number} (\$n= '')
\item 
\hyperlink{class_c_i___cart_aa118461de946085fe42989193337044a}{destroy} ()
\end{DoxyCompactItemize}
\subsection*{Data Fields}
\begin{DoxyCompactItemize}
\item 
\hyperlink{class_c_i___cart_aef9fb0bb2a9ab37008d77ed80b7b122b}{\$product\-\_\-id\-\_\-rules} = '$\backslash$.a-\/z0-\/9\-\_\--\/'
\item 
\hyperlink{class_c_i___cart_afdc2e791be5e676e94580a0d9ed63ebf}{\$product\-\_\-name\-\_\-rules} = '$\backslash$.$\backslash$\-:$\backslash$-\/\-\_\- a-\/z0-\/9'
\item 
\hyperlink{class_c_i___cart_ae0314d046ddf7fcfaec03222977427d3}{\$\-C\-I}
\item 
\hyperlink{class_c_i___cart_a93aff4174af6004d8cc7a51bf0c59632}{\$\-\_\-cart\-\_\-contents} = array()
\end{DoxyCompactItemize}


\subsection{Constructor \& Destructor Documentation}
\hypertarget{class_c_i___cart_a568ecdb0d73d2a870f33189739922a50}{\index{C\-I\-\_\-\-Cart@{C\-I\-\_\-\-Cart}!\-\_\-\-\_\-construct@{\-\_\-\-\_\-construct}}
\index{\-\_\-\-\_\-construct@{\-\_\-\-\_\-construct}!CI_Cart@{C\-I\-\_\-\-Cart}}
\subsubsection[{\-\_\-\-\_\-construct}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-\_\-\-\_\-construct} (
\begin{DoxyParamCaption}
\item[{\$}]{params = {\ttfamily array()}}
\end{DoxyParamCaption}
)}}\label{class_c_i___cart_a568ecdb0d73d2a870f33189739922a50}
Shopping Class Constructor

The constructor loads the Session class, used to store the shopping cart contents. 

\subsection{Member Function Documentation}
\hypertarget{class_c_i___cart_a55d27979573b7d46bdf774f247c15b07}{\index{C\-I\-\_\-\-Cart@{C\-I\-\_\-\-Cart}!\-\_\-insert@{\-\_\-insert}}
\index{\-\_\-insert@{\-\_\-insert}!CI_Cart@{C\-I\-\_\-\-Cart}}
\subsubsection[{\-\_\-insert}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-\_\-insert} (
\begin{DoxyParamCaption}
\item[{\$}]{items = {\ttfamily array()}}
\end{DoxyParamCaption}
)}}\label{class_c_i___cart_a55d27979573b7d46bdf774f247c15b07}
Insert

private 
\begin{DoxyParams}{Parameters}
{\em array} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
bool 
\end{DoxyReturn}
\hypertarget{class_c_i___cart_abaa559f3e9e7f8ad933f19165fb61083}{\index{C\-I\-\_\-\-Cart@{C\-I\-\_\-\-Cart}!\-\_\-save\-\_\-cart@{\-\_\-save\-\_\-cart}}
\index{\-\_\-save\-\_\-cart@{\-\_\-save\-\_\-cart}!CI_Cart@{C\-I\-\_\-\-Cart}}
\subsubsection[{\-\_\-save\-\_\-cart}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-\_\-save\-\_\-cart} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_c_i___cart_abaa559f3e9e7f8ad933f19165fb61083}
Save the cart array to the session D\-B

private \begin{DoxyReturn}{Returns}
bool 
\end{DoxyReturn}
\hypertarget{class_c_i___cart_ac7b19afff2357d4b9e926ee2df1f3e65}{\index{C\-I\-\_\-\-Cart@{C\-I\-\_\-\-Cart}!\-\_\-update@{\-\_\-update}}
\index{\-\_\-update@{\-\_\-update}!CI_Cart@{C\-I\-\_\-\-Cart}}
\subsubsection[{\-\_\-update}]{\setlength{\rightskip}{0pt plus 5cm}{\bf \-\_\-update} (
\begin{DoxyParamCaption}
\item[{\$}]{items = {\ttfamily array()}}
\end{DoxyParamCaption}
)}}\label{class_c_i___cart_ac7b19afff2357d4b9e926ee2df1f3e65}
Update the cart

This function permits the quantity of a given item to be changed. Typically it is called from the \char`\"{}view cart\char`\"{} page if a user makes changes to the quantity before checkout. That array must contain the product I\-D and quantity for each item.

private 
\begin{DoxyParams}{Parameters}
{\em array} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
bool 
\end{DoxyReturn}
\hypertarget{class_c_i___cart_a3c3eeaf9ed289e55cd34926feb82eabf}{\index{C\-I\-\_\-\-Cart@{C\-I\-\_\-\-Cart}!contents@{contents}}
\index{contents@{contents}!CI_Cart@{C\-I\-\_\-\-Cart}}
\subsubsection[{contents}]{\setlength{\rightskip}{0pt plus 5cm}{\bf contents} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_c_i___cart_a3c3eeaf9ed289e55cd34926feb82eabf}
Cart Contents

Returns the entire cart array

public \begin{DoxyReturn}{Returns}
array 
\end{DoxyReturn}
\hypertarget{class_c_i___cart_aa118461de946085fe42989193337044a}{\index{C\-I\-\_\-\-Cart@{C\-I\-\_\-\-Cart}!destroy@{destroy}}
\index{destroy@{destroy}!CI_Cart@{C\-I\-\_\-\-Cart}}
\subsubsection[{destroy}]{\setlength{\rightskip}{0pt plus 5cm}{\bf destroy} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_c_i___cart_aa118461de946085fe42989193337044a}
Destroy the cart

Empties the cart and kills the session

public \begin{DoxyReturn}{Returns}
null 
\end{DoxyReturn}
\hypertarget{class_c_i___cart_a0ee4758d55d11ab91f5b7ac04b1eedc3}{\index{C\-I\-\_\-\-Cart@{C\-I\-\_\-\-Cart}!format\-\_\-number@{format\-\_\-number}}
\index{format\-\_\-number@{format\-\_\-number}!CI_Cart@{C\-I\-\_\-\-Cart}}
\subsubsection[{format\-\_\-number}]{\setlength{\rightskip}{0pt plus 5cm}{\bf format\-\_\-number} (
\begin{DoxyParamCaption}
\item[{\$}]{n = {\ttfamily ''}}
\end{DoxyParamCaption}
)}}\label{class_c_i___cart_a0ee4758d55d11ab91f5b7ac04b1eedc3}
Format Number

Returns the supplied number with commas and a decimal point.

public \begin{DoxyReturn}{Returns}
integer 
\end{DoxyReturn}
\hypertarget{class_c_i___cart_aabcb32751bff6bec65aa62fc152d5dde}{\index{C\-I\-\_\-\-Cart@{C\-I\-\_\-\-Cart}!has\-\_\-options@{has\-\_\-options}}
\index{has\-\_\-options@{has\-\_\-options}!CI_Cart@{C\-I\-\_\-\-Cart}}
\subsubsection[{has\-\_\-options}]{\setlength{\rightskip}{0pt plus 5cm}{\bf has\-\_\-options} (
\begin{DoxyParamCaption}
\item[{\$}]{rowid = {\ttfamily ''}}
\end{DoxyParamCaption}
)}}\label{class_c_i___cart_aabcb32751bff6bec65aa62fc152d5dde}
Has options

Returns T\-R\-U\-E if the rowid passed to this function correlates to an item that has options associated with it.

public \begin{DoxyReturn}{Returns}
array 
\end{DoxyReturn}
\hypertarget{class_c_i___cart_a07488e002c513013079157a9fe61a8e3}{\index{C\-I\-\_\-\-Cart@{C\-I\-\_\-\-Cart}!insert@{insert}}
\index{insert@{insert}!CI_Cart@{C\-I\-\_\-\-Cart}}
\subsubsection[{insert}]{\setlength{\rightskip}{0pt plus 5cm}{\bf insert} (
\begin{DoxyParamCaption}
\item[{\$}]{items = {\ttfamily array()}}
\end{DoxyParamCaption}
)}}\label{class_c_i___cart_a07488e002c513013079157a9fe61a8e3}
Insert items into the cart and save it to the session table

public 
\begin{DoxyParams}{Parameters}
{\em array} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
bool 
\end{DoxyReturn}
\hypertarget{class_c_i___cart_ac4ca22391c63376c2b134e5138712ace}{\index{C\-I\-\_\-\-Cart@{C\-I\-\_\-\-Cart}!product\-\_\-options@{product\-\_\-options}}
\index{product\-\_\-options@{product\-\_\-options}!CI_Cart@{C\-I\-\_\-\-Cart}}
\subsubsection[{product\-\_\-options}]{\setlength{\rightskip}{0pt plus 5cm}{\bf product\-\_\-options} (
\begin{DoxyParamCaption}
\item[{\$}]{rowid = {\ttfamily ''}}
\end{DoxyParamCaption}
)}}\label{class_c_i___cart_ac4ca22391c63376c2b134e5138712ace}
Product options

Returns the an array of options, for a particular product row I\-D

public \begin{DoxyReturn}{Returns}
array 
\end{DoxyReturn}
\hypertarget{class_c_i___cart_a9efa17b570797933c7c5b0c68f743a55}{\index{C\-I\-\_\-\-Cart@{C\-I\-\_\-\-Cart}!total@{total}}
\index{total@{total}!CI_Cart@{C\-I\-\_\-\-Cart}}
\subsubsection[{total}]{\setlength{\rightskip}{0pt plus 5cm}{\bf total} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_c_i___cart_a9efa17b570797933c7c5b0c68f743a55}
Cart Total

public \begin{DoxyReturn}{Returns}
integer 
\end{DoxyReturn}
\hypertarget{class_c_i___cart_a785be13903ee65b8936d523b2728e53a}{\index{C\-I\-\_\-\-Cart@{C\-I\-\_\-\-Cart}!total\-\_\-items@{total\-\_\-items}}
\index{total\-\_\-items@{total\-\_\-items}!CI_Cart@{C\-I\-\_\-\-Cart}}
\subsubsection[{total\-\_\-items}]{\setlength{\rightskip}{0pt plus 5cm}{\bf total\-\_\-items} (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
)}}\label{class_c_i___cart_a785be13903ee65b8936d523b2728e53a}
Total Items

Returns the total item count

public \begin{DoxyReturn}{Returns}
integer 
\end{DoxyReturn}
\hypertarget{class_c_i___cart_adddf5d1a4f704b647f28b0322f8b64f2}{\index{C\-I\-\_\-\-Cart@{C\-I\-\_\-\-Cart}!update@{update}}
\index{update@{update}!CI_Cart@{C\-I\-\_\-\-Cart}}
\subsubsection[{update}]{\setlength{\rightskip}{0pt plus 5cm}{\bf update} (
\begin{DoxyParamCaption}
\item[{\$}]{items = {\ttfamily array()}}
\end{DoxyParamCaption}
)}}\label{class_c_i___cart_adddf5d1a4f704b647f28b0322f8b64f2}
Update the cart

This function permits the quantity of a given item to be changed. Typically it is called from the \char`\"{}view cart\char`\"{} page if a user makes changes to the quantity before checkout. That array must contain the product I\-D and quantity for each item.

public 
\begin{DoxyParams}{Parameters}
{\em array} & \\
\hline
{\em string} & \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
bool 
\end{DoxyReturn}


\subsection{Field Documentation}
\hypertarget{class_c_i___cart_a93aff4174af6004d8cc7a51bf0c59632}{\index{C\-I\-\_\-\-Cart@{C\-I\-\_\-\-Cart}!\$\-\_\-cart\-\_\-contents@{\$\-\_\-cart\-\_\-contents}}
\index{\$\-\_\-cart\-\_\-contents@{\$\-\_\-cart\-\_\-contents}!CI_Cart@{C\-I\-\_\-\-Cart}}
\subsubsection[{\$\-\_\-cart\-\_\-contents}]{\setlength{\rightskip}{0pt plus 5cm}\$\-\_\-cart\-\_\-contents = array()}}\label{class_c_i___cart_a93aff4174af6004d8cc7a51bf0c59632}
\hypertarget{class_c_i___cart_ae0314d046ddf7fcfaec03222977427d3}{\index{C\-I\-\_\-\-Cart@{C\-I\-\_\-\-Cart}!\$\-C\-I@{\$\-C\-I}}
\index{\$\-C\-I@{\$\-C\-I}!CI_Cart@{C\-I\-\_\-\-Cart}}
\subsubsection[{\$\-C\-I}]{\setlength{\rightskip}{0pt plus 5cm}\$C\-I}}\label{class_c_i___cart_ae0314d046ddf7fcfaec03222977427d3}
\hypertarget{class_c_i___cart_aef9fb0bb2a9ab37008d77ed80b7b122b}{\index{C\-I\-\_\-\-Cart@{C\-I\-\_\-\-Cart}!\$product\-\_\-id\-\_\-rules@{\$product\-\_\-id\-\_\-rules}}
\index{\$product\-\_\-id\-\_\-rules@{\$product\-\_\-id\-\_\-rules}!CI_Cart@{C\-I\-\_\-\-Cart}}
\subsubsection[{\$product\-\_\-id\-\_\-rules}]{\setlength{\rightskip}{0pt plus 5cm}\$product\-\_\-id\-\_\-rules = '$\backslash$.a-\/z0-\/9\-\_\--\/'}}\label{class_c_i___cart_aef9fb0bb2a9ab37008d77ed80b7b122b}
\hypertarget{class_c_i___cart_afdc2e791be5e676e94580a0d9ed63ebf}{\index{C\-I\-\_\-\-Cart@{C\-I\-\_\-\-Cart}!\$product\-\_\-name\-\_\-rules@{\$product\-\_\-name\-\_\-rules}}
\index{\$product\-\_\-name\-\_\-rules@{\$product\-\_\-name\-\_\-rules}!CI_Cart@{C\-I\-\_\-\-Cart}}
\subsubsection[{\$product\-\_\-name\-\_\-rules}]{\setlength{\rightskip}{0pt plus 5cm}\$product\-\_\-name\-\_\-rules = '$\backslash$.$\backslash$\-:$\backslash$-\/\-\_\- a-\/z0-\/9'}}\label{class_c_i___cart_afdc2e791be5e676e94580a0d9ed63ebf}


The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize}
\item 
/\-Applications/\-M\-A\-M\-P/htdocs/\-Workspace/blp2.\-0/system/libraries/\hyperlink{_cart_8php}{Cart.\-php}\end{DoxyCompactItemize}
